package com.linkgie.galaxyframework.domain.metadata;

import com.linkgie.galaxyframework.metadata.DataEntity;
import com.linkgie.galaxyframework.metadata.DataField;
import com.linkgie.galaxyframework.metadata.DataType;
import com.linkgie.galaxyframework.metadata.StandardType;


@DataEntity
public class AuditableVO extends EntityVO implements AuditableVI{

	@DataType(dataType = StandardType.TIMESTAMP, contentType = "datetime;format='YYYY-MM-DD HH:mm:ss'")
	@DataField(name = "创建时间", readonly = true,order = 100)
	private long createdTime;
	
	@DataField(name = "创建人",readonly = true, order = 101)
	private String createdBy;
	
	@DataType(dataType = StandardType.TIMESTAMP, contentType = "datetime;format='YYYY-MM-DD HH:mm:ss'")
	@DataField(name = "修改时间",readonly = true, order = 102)
	private long lastModifiedTime;
	
	@DataField(name = "修改人", readonly = true, order = 103)
	private String lastModifiedBy;
	

	@Override
	public long getCreatedTime() {
		return createdTime;
	}

	@Override
	public String getCreatedBy() {
		return createdBy;
	}

	@Override
	public long getLastModifiedTime() {
		return lastModifiedTime;
	}

	@Override
	public String getLastModifiedBy() {
		return lastModifiedBy;
	}

	public void setCreatedTime(long createdTime) {
		this.createdTime = createdTime;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public void setLastModifiedTime(long lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}

	public void setLastModifiedBy(String lastModifiedBy) {
		this.lastModifiedBy = lastModifiedBy;
	}

}
